package com.gtenacg.cartoonservice.pojo.vo;

import com.gtenacg.cartoonservice.pojo.model.Cartoon;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @ViewObject CartoonVo
 */
@Data
public class CartoonVo {
    private Integer cid;
    private String name;
    private String synopsis;
    private String src;
    private String cover;
    private Integer updateStatus;
    private List<String> types;
    private List<String> authors;

    public CartoonVo(Cartoon cartoon, List<String> types, List<String> authors) {
        this.cid = cartoon.getCid();
        this.name = cartoon.getName();
        this.synopsis = cartoon.getSynopsis();
        this.src = cartoon.getSrc();
        this.cover = cartoon.getCover();
        this.updateStatus = cartoon.getUpdateStatus();

        this.types = types;
        this.authors = authors;
    }
}